package com.service;


import com.bean.User;
import com.bean.Viedo;

public interface UserService {
    //密码修改
    public int updateUserspasswords(User user);
    //修改
    public int updateUsers(User user);

    /**
     * 注册用户
     * pages
     *
     * @param user
     */
    public int registUser(User user);

    /**
     * 登陆
     *
     * @param user
     * @return
     */
    public User login(User user);


    /**
     * 检查用户名是否可用
     *
     * @param username
     * @return true 用户名已存在
     */
    public User existsUsername(String username);


    //判断邮箱与用户名是否存在
    public boolean existsUsernameemail(String username, String useremail);

    /**
     * 根据邮箱查询用户信息
     *
     * @param user
     * @return
     */
    public User queryUseremail(User user);
}
